[WIP] Minor: Automatically track available BAC and model chemistry in Arkane#396
[WIP] Minor: Automatically track available BAC and model chemistry in Arkane#396oscarwumit wants to merge 2 commits into
Conversation
| if sp_level not in ['ccsd(t)-f12/cc-pvdz-f12', 'ccsd(t)-f12/cc-pvtz-f12', 'ccsd(t)-f12/cc-pvqz-f12', | ||
| 'b3lyp/cbsb7', 'b3lyp/6-311g(2d,d,p)', 'b3lyp/6-311+g(3df,2p)', 'b3lyp/6-31g(d,p)']\ | ||
| and self.use_bac: | ||
| sp_levels_with_bac_support = ['ccsd(t)-f12/cc-pvdz-f12', |
There was a problem hiding this comment.
can we automate this somehow instead of hard coding and manually updating it?
I can give you a parameter with the path to the RMG-db of the user, we'll need to write a parser to the file.
If you want to merge this in ASAP instead, that's also OK
There was a problem hiding this comment.
I think all you need to do is import pbac and mbac from arkane.encorr.data. These are dictionaries with model chemistry as keys. Therefore, you can generate a list of model chemistries with BAC support automatically and on-the-fly
There was a problem hiding this comment.
Many thanks. I have updated the code using pbac and mbac. @amarkpayne Is there also a dictionary of model chemistry in Arkane we can import to improve line 760?
There was a problem hiding this comment.
I think any model chemistry we have in Arkane will at least have atom energies (I don't know of any that we have BACs for but not atom energies, that would be very strange) so you could look at the atom energy keys
Codecov Report
@@ Coverage Diff @@
## master #396 +/- ##
=======================================
Coverage 54.54% 54.54%
=======================================
Files 34 34
Lines 11904 11905 +1
Branches 3633 3633
=======================================
+ Hits 6493 6494 +1
Misses 4458 4458
Partials 953 953
Continue to review full report at Codecov.
|
f947ce7 to
24071fc
Compare
Quick patch
|
This PR needs ReactionMechanismGenerator/RMG-database#404 to be merged. |
|
@oscarwumit, is there anything here not in #399 that we'd like to implement? |
|
We can close this PR, but please keep the branch as this is need for using BAC corrections for dlpno/ccsd(t)/def2tzvp//wb97xd/defttzvp, which is not merged into RMG yet. |
|
OK |
Automatically track available BAC and model chemistry in Arkane.